package com.financial.transactionhistory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import com.financial.transactionhistory.domain.FinancialDashboard;

/**
 * 财务概览Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-16
 */
@Mapper
public interface FinancialDashboardMapper extends BaseMapper<FinancialDashboard>
{

    /**
     * 查询当前用户的所有支出
     * @param userId
     * @return
     */

    BigDecimal findExpenses(Long userId);

    /**
     * 查询当前用户的收入
     * @param userId
     * @return
     */
    BigDecimal findIncome(Long userId);

    /**
     * 查询当前用户各项预算
     * @param userId
     * @return
     */
    List<FinancialDashboard> findUserAllDashboard(Long userId);
}